CC = gcc
CFLAGS = -O
INCLUDES_SRC = ../../../src/
INCLUDES_PORT = .
INCLUDES_DEMO = ../demo/demo_1/
AR = ar
ARFLAGS = ru
RANLIB = ranlib
RM = rm
OUTPUT = ./
TARGET = libqos.a

#OBJS = $(SRCS:.c=.o)
OBJS = os_cpu.o

all: $(TARGET)

$(TARGET): $(OBJS)
	$(AR) $(ARFLAGS) $(OUTPUT)$@ $(OBJS)
	$(RANLIB) $(OUTPUT)$@

%.o : %.c
	$(CC) $(CFLAGS) -I$(INCLUDES_SRC) -I$(INCLUDES_PORT) -I$(INCLUDES_DEMO) -c $<

clean:
	-$(RM) $(OBJS) $(OUTPUT)/$(TARGET)

rebuilt: clean all



.PHONY: clean all
